﻿<%@ Page Title="OrderPage" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="OrderPage.aspx.cs" Inherits="OrderPage" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:DataGrid  AutoGenerateColumns="false" ID="OrderView" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        ondeletecommand="OrderView_DeleteCommand">
        <Columns>
            <asp:BoundColumn DataField="UserName" HeaderText="用户名"></asp:BoundColumn>
            <asp:BoundColumn DataField="OrderDate" HeaderText="订单日期"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipAddress" HeaderText="送货地址"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipName" HeaderText="收件人"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipPhone" HeaderText="联系电话"></asp:BoundColumn>
            <asp:ButtonColumn ButtonType="PushButton" CommandName="Delete" Text="撤销订单">
            </asp:ButtonColumn>
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <ItemStyle ForeColor="#000066" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" 
            Mode="NumericPages" />
        <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        
    </asp:DataGrid>
</asp:Content>


